import Vue from 'vue'
import App from './App.vue'
// filters
import * as filters from '@/utils/filters'
for (const key in filters) {
  Vue.filter(key, filters[key])
}
// api
import { shopCustomerService } from '@/api/miva'
// default_sercice_png
import default_sercice_png from '@/assets/code.png'
Vue.prototype.$service_png = default_sercice_png
shopCustomerService().then(res => {
  Vue.prototype.$service_png = res.data.img || default_sercice_png
})

import router from './router'
import store from './store'
import './permission'

import vant from 'vant'
import 'vant/lib/index.css'
Vue.use(vant)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
